#include<stdio.h>
#define eps 1e-6
double a, b, c, d;
double f(double x) {return a*x*x*x+b*x*x+c*x+d;}
int main() {
  int cnt = 0;
  scanf("%lf%lf%lf%lf", &a, &b, &c, &d);
  for(int i=-100; i<100; ++i) {
    double l=i, r=i+1;
    double m;
    double cur = f(l);
    double next = f(r);
    if(cur==0.0) {
      printf("%.2lf ", l);
      cnt++;
    }
    else if(cur*next<0) {
      while(r-l>eps) {
        m = (l+r)/2;
        if(f(m)*f(r)<=0) l = m;
        else r = m;
      }
      printf("%.2lf ", m);
      cnt++;
    }
    if(cnt==3) break;
  }
  putchar('\n');
}